package com.sky.mapper;

import com.github.pagehelper.Page;
import com.sky.annotation.AutoFill;
import com.sky.dto.SetmealDTO;
import com.sky.entity.Setmeal;
import com.sky.enumeration.OperationType;
import com.sky.vo.SetmealVO;

import java.util.List;

public interface SetmealMapper {
    Page<SetmealVO> pageSelectSetmeal(Setmeal setmeal);

    SetmealVO byIdSelectSetmeal(Long id);

    @AutoFill(OperationType.UPDATE)
    void updateSetmeal(Setmeal setmeal);

    @AutoFill(OperationType.INSERT)
    void insertSetmeal(Setmeal setmeal);

    void deleteSetmeal(List<Long> ids);
}
